package com.mes.md.service.impl;

import com.mes.md.mapper.WorkstationMapper;
import com.mes.md.service.WorkstationService;
import com.mes.pojo.md.MdWorkstation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author hitsune
 * @Company kafu chino
 * @Description
 * @Time 2024/10/25 16:43
 */

@Service
public class WorkstationServiceImpl implements WorkstationService {

    @Autowired
    private WorkstationMapper workstationMapper;

    @Override
    public List<MdWorkstation> queryWorkstationList(MdWorkstation workstation) {
        return workstationMapper.queryWorkstationList(workstation);
    }

    @Override
    public Integer insertWorkstation(MdWorkstation workstation) {
        return workstationMapper.insertWorkstation(workstation);
    }

    @Override
    public Integer updateWorkstation(MdWorkstation workstation) {
        return workstationMapper.updateWorkstation(workstation);
    }

    @Override
    public Integer deleteWorkstation(Long workstationId) {
        return workstationMapper.deleteWorkstation(workstationId);
    }
}
